package ;

import flixel.effects.particles.FlxParticle;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.util.FlxColor;

/**
 * ...
 * @author Ignacio
 */

 class Fotones extends FlxParticle
{
	
//---Numero del color del Foton 0: 1: 2:---

	public var _fotonColor:Int;
	
//--------------------------------------------------------------
//--------------------------------------------------------------

	public function new(Color:Int) 
	{
		super();
		
		//---Todo lo que tine que ver con la carga y ajuste de los graficos de los fotones---

/*		loadGraphic("assets/images/FotonV1.0_15x15_1Frame.png", false,15,15);
		set_width(Reg._altoF);
		set_height(Reg._altoF);
		setGraphicSize(Reg._altoF, Reg._altoF);
		setSize(Reg._altoF, Reg._altoF);
		updateHitbox();
*/		
		//---Asignaciones de Color---
		{
		if (Color == 1)
		{
			makeGraphic(15, 15,FlxColor.BLUE);
		}
		if (Color == 2)
		{
			makeGraphic(15, 15,FlxColor.GREEN);
		}
		if (Color == 3)
		{
			makeGraphic(15, 15,FlxColor.HOT_PINK);
		}
		if (Color == 4)
		{
			makeGraphic(15, 15,FlxColor.YELLOW);
		}
		if (Color == 5)
		{
			makeGraphic(15, 15,FlxColor.CORAL);
		}
		if (Color == 6)
		{
			makeGraphic(15, 15,FlxColor.BLACK);
		}
		if (Color == 7)
		{
			makeGraphic(15, 15,FlxColor.WHITE);
		}
		if (Color == 8)
		{
			makeGraphic(15, 15,FlxColor.PURPLE);
		}
		if (Color == 9)
		{
			makeGraphic(15, 15,FlxColor.RED);
		}
		}
		_fotonColor = Color;		
	}

//--------------------------------------------------------------
//--------------------------------------------------------------

}